home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / stackey3.zip / SEECOLOR.BAT < prev    next >
DOS Batch File  |  1990-03-25  |  699b  |  38 lines

  1. echo off
  2. cls
  3. stackey {cu=-}
  4. stackey /u/
  5. stackey /i/ ;turn off smart processing to prevent stray keypresses
  6. :                       from causing havoc
  7. if %1a == a goto error
  8. echo 
  9. :top
  10. cls
  11. if %1 == 7 stackey [7=0]
  12. stackey [0=%1]>nul
  13. if errorlevel 1 goto error
  14. echo This is color number %1
  15. pause
  16. if %1 == 7 stackey [7=7]
  17. shift
  18. if %1a == a goto end
  19. goto top
  20. :end
  21. echo 
  22. stackey []
  23. cls
  24. goto finish
  25. :error
  26. echo:
  27. echo:
  28. echo Oops!  The input parameter is not correct.
  29. echo The input parameter should be a number from 0 to 63 or a RrBbGg string
  30. echo:
  31. pause
  32. echo 
  33. stackey []
  34. :finish
  35. stackey {cu=+}
  36. stackey /o/ ; remember to restore users options
  37.  
  38.